package com.qf.logistics.mapper;

import com.qf.logistics.pojo.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * created by 赵文韬 on 2022/3/30 10:45
 */
public interface SysUserMapper {
    @Select("select * from sys_user")
    List<SysUser> findAll();
    @Select("select * from sys_user where user_id = #{UserId}")
    SysUser findUserById(Long UserId);
    @Select("select * from sys_user where user_id = #{UserName}")
    SysUser findUserByUserName(String userName);
    int updateUser(SysUser user);
    int deleteUserById(Long Userid);
    @Insert("INSERT INTO sys_user(username,password,email,mobile,create_time)values (#{sceneName},#{createBy},#{createTime})")
    int addUser(SysUser user);
}
